<div class="modal-header">
    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
    <h4 class="modal-title" id="myModalLabel">删除标签</h4>
</div>
<div class="modal-body">
    <div>
        确认删除  <span><a>{{ current_tag.name }}</a></span>  ?
    </div>
</div>
<div class="modal-footer">
    <button type="button" class="btn btn-default" data-dismiss="modal">我再想想</button>
    <button type="button" class="btn my-btn-primary delete-tag-btn">确认并删除</button>
</div>
<script>
    $('.delete-tag-btn').click(function () {
        var url = '{{ url_for('tag.tag_delete', tag_id=current_tag.id) }}';
        $.post(url, {}, function (data, status) {
            window.location.reload();
        });
    });
</script>